package com.github.xiaoymin.map.response.tencent;

import com.github.xiaoymin.map.model.MapLocation;
import com.google.gson.annotations.SerializedName;

public class TencentIpLocationResponse {

    /**
     * ip地址
     */
    private String ip;
    /**
     * 经纬度
     */
    @SerializedName("location")
    private MapLocation mapLocation;
    /**
     * 省市区
     */
    @SerializedName("ad_info")
    private TencentAddressComponent amapAddressComponent;

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public MapLocation getMapLocation() {
        return mapLocation;
    }

    public void setMapLocation(MapLocation mapLocation) {
        this.mapLocation = mapLocation;
    }

    public TencentAddressComponent getAmapAddressComponent() {
        return amapAddressComponent;
    }

    public void setAmapAddressComponent(TencentAddressComponent amapAddressComponent) {
        this.amapAddressComponent = amapAddressComponent;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("AmapIpLocationResponse{");
        sb.append("ip='").append(ip).append('\'');
        sb.append(", mapLocation=").append(mapLocation);
        sb.append(", amapAddressComponent=").append(amapAddressComponent);
        sb.append('}');
        return sb.toString();
    }
}
